<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%
		request.setCharacterEncoding("utf-8");
		String name = request.getParameter("username");
		String password = request.getParameter("pwd");
	    if(name.equals("znn") && password.equals("123")){
	    	session.setAttribute("user", name);
	    	RequestDispatcher rd = request.getRequestDispatcher("success.jsp");
	    	rd.forward(request, response);
	    }else{
	    	RequestDispatcher rd = request.getRequestDispatcher("fail.jsp");
	    	rd.forward(request, response);
	    }
		%>
</body>
</html>